package com.skt.manage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.skt.manage.mapper.DoctorschedulesMapper;
import com.skt.manage.domain.Doctorschedules;
import com.skt.manage.service.IDoctorschedulesService;

/**
 * 存储医生的排班信息Service业务层处理
 * 
 * @author ffbaby
 * @date 2025-02-20
 */
@Service
public class DoctorschedulesServiceImpl implements IDoctorschedulesService 
{
    @Autowired
    private DoctorschedulesMapper doctorschedulesMapper;

    /**
     * 查询存储医生的排班信息
     * 
     * @param scheduleId 存储医生的排班信息主键
     * @return 存储医生的排班信息
     */
    @Override
    public Doctorschedules selectDoctorschedulesByScheduleId(Long scheduleId)
    {
        return doctorschedulesMapper.selectDoctorschedulesByScheduleId(scheduleId);
    }

    /**
     * 查询存储医生的排班信息列表
     * 
     * @param doctorschedules 存储医生的排班信息
     * @return 存储医生的排班信息
     */
    @Override
    public List<Doctorschedules> selectDoctorschedulesList(Doctorschedules doctorschedules)
    {
        return doctorschedulesMapper.selectDoctorschedulesList(doctorschedules);
    }

    /**
     * 新增存储医生的排班信息
     * 
     * @param doctorschedules 存储医生的排班信息
     * @return 结果
     */
    @Override
    public int insertDoctorschedules(Doctorschedules doctorschedules)
    {
        return doctorschedulesMapper.insertDoctorschedules(doctorschedules);
    }

    /**
     * 修改存储医生的排班信息
     * 
     * @param doctorschedules 存储医生的排班信息
     * @return 结果
     */
    @Override
    public int updateDoctorschedules(Doctorschedules doctorschedules)
    {
        return doctorschedulesMapper.updateDoctorschedules(doctorschedules);
    }

    /**
     * 批量删除存储医生的排班信息
     * 
     * @param scheduleIds 需要删除的存储医生的排班信息主键
     * @return 结果
     */
    @Override
    public int deleteDoctorschedulesByScheduleIds(Long[] scheduleIds)
    {
        return doctorschedulesMapper.deleteDoctorschedulesByScheduleIds(scheduleIds);
    }

    /**
     * 删除存储医生的排班信息信息
     * 
     * @param scheduleId 存储医生的排班信息主键
     * @return 结果
     */
    @Override
    public int deleteDoctorschedulesByScheduleId(Long scheduleId)
    {
        return doctorschedulesMapper.deleteDoctorschedulesByScheduleId(scheduleId);
    }
}
